package com.zzc.repository;

import com.zzc.domain.ProductImg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.ArrayList;

public interface ProductImgRep extends JpaRepository<ProductImg,Integer> {

    @Query(value = "select * from PRODUCTIMG where PRODUCT_NAME = ?1",nativeQuery = true)
    ArrayList<ProductImg> findAllByProductName(String productName);
}
